package com.starlinkdt.common.context;

/**
 * RequestId信息
 * 
 * @author system
 */
public class RequestIdContextHolder
{
    private static final ThreadLocal<String> UTILIZE_REQUEST_ID_TL = new ThreadLocal<>();

    public static String getContext()
    {
        return UTILIZE_REQUEST_ID_TL.get();
    }

    public static void setContext(String context)
    {
        UTILIZE_REQUEST_ID_TL.set(context);
    }

    public static void clearContext()
    {
        UTILIZE_REQUEST_ID_TL.remove();
    }
}
